import request from './request.js'

// 为你优选
function getPerference() {
	return request({
		url: '/forshop/getprefer'
	})
}

// 附近商家
function getNearlyShop() {
	return request({
		url: '/forshop/wxshop',
	})
}

// 综合排序
function getSortData({screen, nums}) {
	return request({
		url: '/forshop/starting',
		method: 'post',
		data: {
			screen,
			nums
		}
	})
}

// 筛选多选
function getMulitsortData(obj) {
	return request({
		url: '/forshop/multiple',
		method: 'post',
		data: obj
	})
}

export {
	getPerference,
	getSortData,
	getMulitsortData,
	getNearlyShop
}
